import request from '@/utils/request'

// 查询项目查评列表
export function listEvaluation(query) {
  return request({
    url: '/system/evaluation/list',
    method: 'get',
    params: query
  })
}

// 查询项目查评详细
export function getEvaluation(id) {
  return request({
    url: '/system/evaluation/' + id,
    method: 'get'
  })
}

// 新增项目查评
export function addEvaluation(data) {
  return request({
    url: '/system/evaluation',
    method: 'post',
    data: data
  })
}

// 修改项目查评
export function updateEvaluation(data) {
  return request({
    url: '/system/evaluation',
    method: 'put',
    data: data
  })
}

// 删除项目查评
export function delEvaluation(id) {
  return request({
    url: '/system/evaluation/' + id,
    method: 'delete'
  })
}
// 根据id查看事件类型
export function isSafeEva(id) {
  return request({
    url: '/system/evaluation/isSafeEva/' + id,
    method: 'get'
  })
}
  // 文件上传
export function uploadFile(data) {
  return request({
    url: '/system/evaluation/uploadFile',
    method: 'post',
    data: data
  })
}
// 后台模糊查询的接口----查证情况/存在问题/整改建议
export function dimSelect() {
  return request({
    url: '/system/evaluation/dimSelect',
    method: 'get'
  })
}
// 查询问题整改列表---存在问题的项目查评
export function problemRectificationList(query) {
  return request({
    url: '/system/evaluation/problemRectificationList',
    method: 'get',
    params: query
  })
}
// 查询查评分组列表
export function listDetails(query) {
  return request({
    url: '/system/evaluation/listDetails',
    method: 'get',
    params: query
  })
}
